package com.wxw.BaseLibrary.adapter;

import android.view.LayoutInflater;
import android.view.View;
import com.wxw.BaseLibrary.element.JsonObject;

/**
 * @author david
 * @date 2020-03-18
 */
public interface IJsonDataItemViewCreator {
    /**
     * 生成或设置<code>ListView</code>的<code>Item</code>的<code>View</code>对象
     * @param position
     * @param convertView
     * @param inflater
     * @param jsonData
     * @return
     */
    View createView(int position, View convertView, LayoutInflater inflater, JsonObject jsonData);

    /**
     * 设置<code>Item</code>的<code>View</code>实例
     * @param helper
     * @param jsonItem
     */
    void setView(ViewsHelper helper, JsonObject jsonItem);
}